home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11307 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: rcp6.elan.af.mil!rscernix!root
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to make it BEEP ?
  5. Date: 20 Mar 96 15:13:28 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <root.827334808@rscernix>
  8. References: <4ihuuh$6ul@hatathli.csulb.edu> <4in0ih$o43@zeus.intellinet.com> <4in5r1$j90@druid.borland.com> <4inmv1$ljj@sunburst.ccs.yorku.ca> <Pine.A32.3.91.960320023324.87028G-100000@red.weeg.uiowa.edu>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <Pine.A32.3.91.960320023324.87028G-100000@red.weeg.uiowa.edu> The Amorphous Mass <robinson@blue.weeg.uiowa.edu> writes:
  13.  
  14. >On 20 Mar 1996, Shahed A. Quazi wrote:
  15. >
  16. >> I was wondering if anyone would be kind enough to tell me if there is a
  17. >> C function on unix that I can use to make a beep sound. If it's not 
  18. >> there,I would really appreciate if someone could give me the code.
  19. >
  20. >  putc('\a');  /* will work on all platforms that support ANSI C */
  21.  
  22. Not quite.  Calling a function with the wrong number of arguments
  23. actually invokes undefined behaviour.
  24.  
  25. BTW, if my terminal's bell is broken, does this make my implementation
  26. non-conformant? :-)
  27.  
  28. Dan
  29. --
  30. Dan Pop
  31. CERN, CN Division
  32. Email: danpop@mail.cern.ch 
  33. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  34.